package com.newway.back.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.newway.common.result.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("tournament")
public class Tournament extends BaseEntity {

    @TableId
    private Integer id;

    private String name;

    private String videoUrl;

    private String picUrl;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private String category;
}
